package models

import (
	"common/uuid"
	"time"
)

type Bucket struct {
	ID        uuid.UUID `json:"id" gorm:"column:id;primaryKey;type:binary(16);NOT NULL;comment:bucketId"`
	Bucket    string    `json:"bucket" gorm:"column:bucket;size:100;NOT NULL;index:bucket_owner;comment:bucket名称"`
	OwnerId   uuid.UUID `json:"owner_id" gorm:"column:owner_id;type:binary(16);NOT NULL;index:bucket_owner;comment:所属用户"`
	CreatedAt time.Time `gorm:"column:created_at;type:time;NOT NULL;default:CURRENT_TIMESTAMP" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:time;NOT NULL;default:CURRENT_TIMESTAMP" json:"updated_at"`
}
